/**
 * Copyright (C) 2009+ Spark Zheng
 *
 * @file        src/filters/test_1/test_1.h 
 * @date        2010-05-04
 * @brief	filter_module
 * @see         dserver
 * @history
 */

#ifndef _DSERVER_TEST_1_H
#define _DSERVER_TEST_1_H

#ifdef __cplusplus
extern "C" {
#endif

#include <dlib/global.h>

#include "prot_types.h"
#include "filt_types.h"
#include "connection.h"

#define FILTER_SUBMIT
//#define FILTER_ERROR
//#define FILTER_DELIVER

extern int filter_on_load(const void *setting, filter_node_t *filter);

extern void *filter_stream_init(void *arg);

extern void *filter_stream_worker(void *thread_arg, void *task_arg);

extern void *filter_stream_finish(void *res_arg, void *detask_arg);

extern void *filter_stream_timeout(void *res_arg, void *totask_arg);

extern void filter_stream_exit(void *arg);

extern void filter_on_unload(filter_node_t *filter);

#ifdef __cplusplus
}
#endif
#endif

